import Base from './base.js';
export default class extends Base {
      async indexAction() {

      }
      async infoAction() {
            return this['_success']({
                  roles: ["editor"],
                  name: "editor",
                  avatar: "http://b-ssl.duitang.com/uploads/item/201509/03/20150903160121_tMLZn.jpeg",
                  introduction: "I -am a big",
                  router: [
                        {
                              path: '/permission',
                              children: [
                                    {
                                          path: 'page',
                                          name: 'PagePermission'
                                    },
                                    {
                                          path: 'directive',
                                          name: 'DirectivePermission',
                                    },
                                    // {
                                    //       path: 'role',
                                    //       name: 'RolePermission',
                                    // }
                              ]
                        },

                        {
                              path: '/icon',
                              children: [
                                    {
                                          path: 'index',
                                          name: 'Icons',
                                    }
                              ]
                        },

                        {
                              path: '/example',
                              name: 'Example',
                              children: [
                                    {
                                          path: 'create',
                                          name: 'CreateArticle',
                                    },
                                    {
                                          path: 'edit/:id(\\d+)',
                                          name: 'EditArticle',
                                    },
                                    {
                                          path: 'list',
                                          name: 'ArticleList',
                                    }
                              ]
                        },

                        {
                              path: '/tab',
                              children: [
                                    {
                                          path: 'index',
                                          name: 'Tab',
                                    }
                              ]
                        },

                        {
                              path: '/error',
                              name: 'ErrorPages',
                              children: [
                                    {
                                          path: '401',
                                          name: 'Page401',
                                    },
                                    {
                                          path: '404',
                                          name: 'Page404',
                                    }
                              ]
                        },

                        {
                              path: '/error-log',
                              children: [
                                    {
                                          path: 'log',
                                          name: 'ErrorLog',
                                    }
                              ]
                        },

                        {
                              path: '/excel',
                              name: 'Excel',
                              children: [
                                    {
                                          path: 'export-excel',
                                          name: 'ExportExcel',
                                    },
                                    {
                                          path: 'export-selected-excel',
                                          name: 'SelectExcel',
                                    },
                                    {
                                          path: 'export-merge-header',
                                          name: 'MergeHeader',
                                    },
                                    {
                                          path: 'upload-excel',
                                          name: 'UploadExcel',
                                    }
                              ]
                        },

                        {
                              path: '/zip',
                              name: 'Zip',
                              children: [
                                    {
                                          path: 'download',
                                          name: 'ExportZip',
                                    }
                              ]
                        },

                        {
                              path: '/pdf',
                              children: [
                                    {
                                          path: 'index',
                                          name: 'PDF',
                                    }
                              ]
                        },
                        {
                              path: '/pdf/download',
                        },

                        {
                              path: '/theme',
                              children: [
                                    {
                                          path: 'index',
                                          name: 'Theme',
                                    }
                              ]
                        },

                        {
                              path: '/clipboard',
                              children: [
                                    {
                                          path: 'index',
                                          name: 'ClipboardDemo',
                                    }
                              ]
                        },
                  ]
            })
      }
}

